Use formatting instead of weird path reconstruction
authorFélix Piédallu <felix@piedallu.me>
Fri, 1 Dec 2017 14:57:41 +0000 (15:57 +0100)
committerØyvind Kolås <pippin@gimp.org>
Sat, 16 Dec 2017 01:44:00 +0000 (02:44 +0100)
docs/meson.build

index 04ba6670e4ecffd26c4eae6ecc098341194ae67c..3a5115b90f2df350e5dde7605e12765eedc738a2 100644 (file)
@@ -19,8 +19,7 @@ index_html_tmp = custom_target('index.html.tmp',
   input : [ babl_html_dump, ],
   output: [ 'index.html.tmp', ],
   command: [ 'bash', '-c',
-    'BABL_PATH="' + join_paths(meson.build_root(), 'extensions') +'"'
-    + ' ' + babl_html_dump.full_path()
+    'BABL_PATH="'+ join_paths(meson.build_root(), 'extensions') +'" '+ babl_html_dump.full_path()
   ],
   capture: true,
 )
@@ -35,7 +34,7 @@ index_html = custom_target('index.html',
   ],
   output: [ 'index.html', ],
   command: [ 'bash', '-c',
-    'cp '+ join_paths(meson.build_root(), meson.current_source_dir(), 'index-static.html') +' @OUTPUT@'
+    'cp '+ '@0@'.format(index_static_html) +' @OUTPUT@'
     +' && '+ xml_insert.path() +' @OUTPUT@ BablBase '+ index_html_tmp.full_path()
     +' && '+ xml_insert.path() +' @OUTPUT@ AUTHORS  '+ join_paths(meson.source_root(), 'AUTHORS')
     +' && '+ xml_insert.path() +' @OUTPUT@ TODO     '+ join_paths(meson.source_root(), 'TODO')